import { pget, postJson } from '@/utils/req';
import { modalApi } from '@/utils/modalReq';

// 查询已部署的流程分页
export function getTableList(data: any) {
  return postJson(`${modalApi.workflow}/process/procdefList`, data);
}

// 更改流程状态
export function changeStuts(data: any) {
  return postJson(`${modalApi.workflow}/process/suspendAndActivation`, data);
}

// 删除流程
export function deleteManage(data: { id: string }) {
  return pget(`${modalApi.workflow}/process/deleteProcess`, data);
}

// 审核人列表
export function getProcessAuditList(data: any) {
  return postJson(
    `${modalApi.common}/shopec-process-audit/processaudit/processAuditList`,
    data,
  );
}

// 修改审核人
export function getProcessUpdate(data: any) {
  return postJson(
    `${modalApi.common}/shopec-process-audit/processaudit/update`,
    data,
  );
}
